<?php 
namespace App\Models;
use Log,DB;
use App\Cache\BaseCache;
class ViewHistory extends BaseModel{
	
	//表明
	protected $table = 'view_history';
	//主键
	protected $primaryKey = 'id';
    
    public function saveModel(){
        $userModelCache = new BaseCache();
        $userModelCache->method = 'forget';
        $userModelCache->cacheName = 'userHistoryLog';
        $userModelCache->cachePar = array($this->user_id); //集合
        $userModelCache->HandleCache();
    }
    
}